<template>
	<view class="u-demo">
		<view class="u-demo-title">
			{{content.name}}
		</view>
		<view class="u-flex">
			<image :src="base+content.imgUrl" mode="aspectFit" style="width: 40%;"></image>
			<view class="u-p-l-30">
				{{content.introduce}}
			</view>
		</view>
		<uni-group title="投放指南">
			<view class="">
				{{content.guide}}
			</view>
		</uni-group>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base: api.baseurl,
				content: ''
			}
		},
		onLoad(options) {
			this.getlun(options.name)
		},
		methods: {
			getlun(name) {
				this.$get(this.base + '/prod-api/api/garbage-classification/garbage-classification/list', {
					Name: name
				}).then((res) => {
					this.content = res.rows[0]
					console.log(res.rows)
				})
			}
		}
	}
</script>

<style>

</style>
